﻿using Camc.Quality.QualityAnalysis.RFormBase;
using Camc.Quality.QualityAnalysis.RFormClass;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Camc.Quality.QualityAnalysis.RFormEntity
{
   public class R问题记录表 : RTableBase
    {

        public R问题记录表(int serialNum, Guid rWorkStepEntityId, Guid rProcessesEntityId, int sort, string firstDrawingName, string recordElement, string abnormalRecord ,string recordRemark)
        {
            SerialNum = serialNum;
            RWorkStepEntityId = rWorkStepEntityId;
            RProcessesEntityId = rProcessesEntityId;
            Sort = sort;

            FirstDrawingName = firstDrawingName;
            RecordElement = recordElement;
            AbnormalRecord = abnormalRecord;
            RecordRemark = recordRemark;
        }
        public override string FormName { get; protected set; } = "问题记录表";

        public override string FirstDrawingName_DisplayName { get; protected set; } = "名称";


        public override string RecordElement_DisplayName { get; protected set; } = "记录项目";
      

        public override string AbnormalRecord_DisplayName { get; protected set; } = "问题记录";
        public RRecordRequirementsEntity SetRecordRequirements(RRecordRequirementsEntity entity, string remark)
        {
           
            entity.SetRemarks(remark, "备注");
            return entity;
        }
        public RMeasuredResultEntity SetMeasuredResult(RMeasuredResultEntity entity, string measuredActual)
        {
            entity.SetMeasuredActual(measuredActual, "解决措施");
            return entity;
        }
        /// <summary>
        /// 插入多媒体
        /// </summary>
        public RMultiMediaEntity SetMultiMedia(RMultiMediaEntity entity, string photoNo)
        {
            entity.SetMultiMedia(photoNo, "多媒体");
            return entity;
        }
    }
}
